package com.tsmti.business.entity;

import com.tsmti.core.common.entity.BaseDataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Where;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * @Package：com.tsmti.business.entity
 * @Class：PimsSysFeeItems
 * @Description： TODO
 * @Author：king
 * @Date：Created in 2018/11/12 10:07
 * @Company:
 * @Version：
 * @Modified By:
 */
@Entity
@Table(name = "PIMS_SYS_FEE_ITEMS")
@DynamicInsert
@DynamicUpdate
@Where(clause = "delFlag = 0")
public class PimsSysFeeItems extends BaseDataEntity<Long> {
    /**
     *收费细项ID
     */
    private Long id;
    /**
     *hHIS收费细项ID
     */
    private String feeHisId;
    /**
     *价格
     */
    private Double price;
    /**
     *单位
     */
    private String unit;
    /**
     * 名称
     */
    private String name;
    /**
     * 拼音码
     */
    private String pinyinCode;
    /**
     * 五笔码
     */
    private String wubiCode;
    /**
     * 英文
     */
    private String enCode;
    /**
     *所属特检类型(空、MYZH,FZBL,TSRS)
     */
    private String specialType;
    /**
     *项目类型(空、单克隆、癌基因)
     */
    private Long type;

    public String getSpecialType() {
        return specialType;
    }

    public void setSpecialType(String specialType) {
        this.specialType = specialType;
    }

    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }

    @Basic
    @Column(name = "NAME")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "PINYINCODE")
    public String getPinyinCode() {
        return pinyinCode;
    }

    public void setPinyinCode(String pinyinCode) {
        this.pinyinCode = pinyinCode;
    }

    @Basic
    @Column(name = "WUBICODE")
    public String getWubiCode() {
        return wubiCode;
    }

    public void setWubiCode(String wubiCode) {
        this.wubiCode = wubiCode;
    }

    @Basic
    @Column(name = "ENCODE")
    public String getEnCode() {
        return enCode;
    }

    public void setEnCode(String enCode) {
        this.enCode = enCode;
    }

    @Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_SYS_FEE_ITEMS")
    @SequenceGenerator(name = "SEQ_SYS_FEE_ITEMS", sequenceName = "SEQ_SYS_FEE_ITEMS", allocationSize = 1)
    @Override
    public Long getId() {
        return id;
    }
    @Override
    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "FEEHISID")
    public String getFeeHisId() {
        return feeHisId;
    }

    public void setFeeHisId(String feeHisId) {
        this.feeHisId = feeHisId;
    }

    @Basic
    @Column(name = "PRICE")
    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    @Basic
    @Column(name = "UNIT")
    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }
}
